home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Team 23
/
HS_Tuning.iso
/
Optimisation
/
JV16 Powertools 1.6
/
Setup.exe
/
{app}
/
Documentation
/
Example Scripts
/
3. More complex
/
Variables with a loop.jvb
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2003-07-09
|
374 b
|
19 lines
Console;
//This means that we define a variable called "x" and set it's value to "0".
Define x 0;
Define z;
z := "6";
//The loop goes from 0 to 6 but it lists only numbers 1 and 2.
//Yeah, I know, it's a stupid example, you could do the same with just one for loop...
For (i := $x to $z, +1)
[
If ($i > 0)
[
if ($i <= 2) [ PrintMessage $i; ]
]
]